import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home/home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    name: 'login',
    component: () => import( '../views/login/login.vue')
  },
  {
    path: '/kind',
    name: 'kind',
    component: () => import( '../views/kind/kind.vue')
  },
  {
    path: '/shop',
    name: 'shop',
    component: () => import( '../views/shop/shop.vue')
  },
  {
    path: '/my',
    name: 'my',
    component: () => import( '../views/my/my.vue')
  },
  {
    path: '/order',
    name: 'order',
    component: () => import( '../views/order/order.vue')
  },
  {
    path: '/myorder',
    name: 'myorder',
    component: () => import( '../views/myorder/myorder.vue')
  },
  {
    path: '/adress',
    name: 'adress',
    component: () => import( '../views/adress/adress.vue')
  },
  {
    path: '/add',
    name: 'add',
    component: () => import( '../views/add/add.vue')
  },
  {
    path: '/fu',
    name: 'fu',
    component: () => import( '../views/fu/fu.vue')
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
